
project(loutine C)
SET(CMAKE_C_COMPILER_WORKS TRUE)

set(CMAKE_C_FLAGS "-m32 -z execstack -fno-stack-protector ${CMAKE_C_FLAGS}")
add_definitions(-DUSE_32_ENV)
add_definitions(-D_GNU_SOURCE)
add_definitions(-DTEST_BYPASS)

add_executable(loutine
        main.c util.c
        switch.c time_sched.c gmp.c
        round_list.c deque.c priority_queue.c)
target_link_libraries(loutine pthread)



